package ui;

import dao.TaskDAO;
import dao.impl.TaskDAODB;
import service.NotificationService;
import service.impl.NotificationImpl;
import service.TaskManager;

/**
 * User: Алексей
 * Date: 10.11.12
 * Time: 14:27
 */
public class Controller {

    public static void main(String... args) {

        //TaskDAO dao = new TaskDAOImpl("out.xml");
        TaskDAO dao = new TaskDAODB();
        TaskManager manager = new TaskManager(dao);
        GUI gui = new GUI(manager);
        NotificationService note = new NotificationImpl(gui, dao.getAllTasks());
        note.waitTaskForExecute();
        gui.setVisible(true);
    }
}
